import { constantRoutes } from '@/router/index'

export default {
  namespaced: true,
  state: () => {
    return {
      menuList: [...constantRoutes]
    }
  },
  mutations: {
    getMenuList(state, newAsyncRoutes) {
      //   state.menuList.push(...newAsyncRoutes)
      state.menuList = [...constantRoutes, ...newAsyncRoutes]
    }
  },
  actions: {},
  getters: {}
}
